package com.centronix.domain;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the employee database table.
 * 
 */
@Entity
public class Employee implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int empId;

	private String desgination;

	//bi-directional many-to-one association to Person
    @ManyToOne
	@JoinColumn(name="PersonId")
	private Person person;

	//bi-directional many-to-one association to ProductRelease
	@OneToMany(mappedBy="employee")
	private List<ProductRelease> productReleases;

    public Employee() {
    }

	public int getEmpId() {
		return this.empId;
	}

	public void setEmpId(int empId) {
		this.empId = empId;
	}

	public String getDesgination() {
		return this.desgination;
	}

	public void setDesgination(String desgination) {
		this.desgination = desgination;
	}

	public Person getPerson() {
		return this.person;
	}

	public void setPerson(Person person) {
		this.person = person;
	}
	
	public List<ProductRelease> getProductReleases() {
		return this.productReleases;
	}

	public void setProductReleases(List<ProductRelease> productReleases) {
		this.productReleases = productReleases;
	}
	
}